package com.springboot.chatroom.mapper;


import com.springboot.chatroom.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-03-21
 * Time: 13:20
 */
@Mapper
public interface UserMapper {
    // 提供两个方法：注册和登录
    // 插入数据-注册
    Integer insertUser(String username, String password);

    // 根据username查询数据-登录
    User selectByUsername(String username);
}
